package components.propertyCtrls
{
	import UIFree.controls.uif_vaScrollArea;
	import UIFree.uif_combobox;
	import UIFree.uif_component;
	
	import flash.display.DisplayObject;
	import flash.geom.Rectangle;
	
	public class c_combobox extends uif_combobox {
		public function c_combobox(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, styleClass:String='') {
			super(parent, ax, ay, awidth, aheight, styleClass);
		}
		
		override protected function createListLayer():uif_vaScrollArea {
			var p: uif_component 	= parent.parent.parent as uif_component; 
			var rect: Rectangle 	= getBounds(p);
			return new uif_vaScrollArea(p, rect.x, rect.y + rect.height, rect.width, 100, style['list-class']);
		}
	}
}